Quantcast
Channel: Transact-SQL forum
Browsing all 23857 articles
Browse latest View live

How to extract rpc_completed extended event info, ex: plan_handle?

Hi experts,    I use this link - sql_statement_completed as an example ( http://blogs.msdn.com/b/saponsqlserver/archive/2010/06/16/analyzing-statements-with-extended-events-extended-events-part-ii.aspx...

View Article


use filter condition for a particular column in select statement

hi...i have 3 tables....1. wn_synset(synset_id decimal, w_num decimal, word varchar(255), ss_type char)this table contains word List in word column.2.wn_gloss(synset_id decimal, gloss varchar(255)this...

View Article


weird join issue

hi all,I am running into a strange issue and wondering if you have any similar experience. I have two very simple tables and am joining them on employee id. everything pulls correctly in this query but...

View Article

What is best Collation for best for handling date Internationally?

Are you sure it is ItemSource property and not DataSource property you want to set programmatically? I have not come across such property as itemsource property for DataGridView. My app runs perfectly...

View Article

Confusing output of SQL Server Profiler

Try to be brief. Here is my table and SP in SQL Server 2008 R2 database:CREATE TABLE dbo.TEST_TABLE ( ID INT NOT NULL IDENTITY (1,1) PRIMARY KEY, VALUE varchar(23) ) GO CREATE PROCEDURE...

View Article


Help in query please

Hi, How I can get the desired output. Every record should be with single quotation and next record aftercomma. '(' should be in starting and ')' should be in the end and 10 records in each row. I would...

View Article

Creating DDL trigger to keep two identical tables on two separate databases,...

I have two databses, tempdblog and testdblog. I'm trying to figure out how, when i alter a table on tempdblog, that exact same command will be executed on testdblog, i don't want the rows transfered i...

View Article

Tsql Query

 CompanyID  EventID     Date                                                                                                                                                         101...

View Article


MS Sql import export tool - can you use it without OrdinalPositionColumnName

Hello, I'm using MS Import Export Data tool.   I'm going from Pervasive v9 to Sql Server 2012 express.   I getting the following error " The column attribute ORDINAL_POSITION is not valid.    I had...

View Article


Combinations with Best Total value without Exceeding a maximum cost

Hello,I have an interesting problem I am trying to solve and I am wondering if TSQL, or another tool like SSAS would be a good option for this. I am trying to find out the best performance from 8 parts...

View Article

Executing Sybase Stored procedure from Sql Server 2008 using Linked Server

I have checked previous threads but no use....here is my issueI am using Linked server created in SQL Server 2008 R2 to connect to Sybase db. The Linked Server works as it gives required results when...

View Article

Trigger vs Implementing Constraint in Sproc

We are building a UI where users are allowed to make some changes. There are some restrictions on what the user can update depending on the dataset. I have been restricting users to do the invalid...

View Article

Unclosed quotation mark after the character string ')'.

I have a problem with a stock procedure precisely  in @sqlstmt that return the following error : Msg 105, Level 15, State 1, Line 2 Unclosed quotation mark after the character string ')'. Msg 102,...

View Article


WITHOUT USING ROW_NUMBER FUNCTIONS IN T-SQL

INPUT:-CUST_IDGIFT_ID10010100201003020010200202003030020OUTPUT:-CUST_IDGIFT_IDSEQ100101100202100303200101200202200303300201santoshbangalore

View Article

MSDN in AWS Environment

Can we use an MSDN license on amazon AWS environment? Indu Biswakarma

View Article


Stored Procedure code, How to search for tables

Hi folksI had a question which I'm not sure whether its possible or not:I have a table in my "SQL Server 2008" database. I need to find out, in which procedures or functions it’s being used. Is there a...

View Article

Deleting data in a table based on 2 columns

I have 2 tables, one contains data and one contains parameters.table A (Data Table) looks like this: SID     NAME     METER    DATE 95       Jones            1   01-01-13 95       Jones            2...

View Article


Assuming that the view does not reference another view, how many base tables...

While solving some SQL questions I came across this question.What exactly they are asking ?Assuming that the view does not reference another view, how many base tables are referenced?  Choice 1     0...

View Article

Split data into seperate tables

Hi,I have a table "#TmpTbl1", which is having a column prdintv. this column will have the data like X;Y. I need to split this data into rows and insert into a separate table "#TmpTbl_intv", again based...

View Article

Query Tunning

Hi Experts,I have table called ABC, having i million records. when I Run below query it is taking around 7 mins. Can anybody help me to optimize the query.DECLARE @FINAL_RESULT TABLE (  BTI1...

View Article
Browsing all 23857 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>