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

SET ANSI_WARNINGS ON causes client to allocate massive amounts of memory,...

Dear fellow SQL Server programmers,I would like to have ANSI_WARNINGS set to ON. I know that this causes statements like the example below to give a warning. This seems to have an unfortunate side...

View Article


sql server 2012 table-valued parameters

Hi, i've a simple question abuot table-valued parameters (i start from an example on Microsoft site:http://msdn.microsoft.com/en-us/library/bb675163(v=vs.110).aspx   )This is my code:CREATE PROCEDURE...

View Article


Auditing method in sql server

Hello Friends,I have a problem related to query tracing.I do not have permission to use sql server profiler.so i can not trace sql queries which sends to database which is owner of me.so is there a way...

View Article

Query Performance issue

I have a stored procedure, it is more than 100 line coding.More than 20 tables have involved in this SP.I have been seen last 3 days, the performance of the SP is getting low.The time taken by the SP...

View Article

convert the row in to column which has 2 row

Hi Alli have a result set  like prd_d20112012what i need is   prd_d_one  prd_d_two2011           2012thanks

View Article


string comparison gives different values

Hi,I have the following query:select * from table_AWHERE  CONVERT(VARCHAR(10),DEPARTURE_DATE,110) = '02-28-2014' . This works just fine.But when I run the query like thiS:WHERE...

View Article

Duplicate value

Hi,I have a table where one of my column is PE and it has a data like(FW,AP and EQ). Another column is there with Description , value,code ..PE       DescriptionAP     BaseballAP     Baseball TeamAP...

View Article

For Creating Date Columns Dynamically

hi,Can Some one help me for creating a date columns dynamically.--> 1) I have a column called Received_Dates Having datatype of datetime .--> 2) I need to make the data in Received_Dates  into...

View Article


Image may be NSFW.
Clik here to view.

Help with SELECT

Hi guys,Please could you help me solve this problem/challenge. I have a table that looks like this:What I am trying to do is SELECT rows based on what "Session" the "Third User" does not belong to. In...

View Article


Strange problem with case statement

I got into an issue with the below statement. I don’t understand why it is not working as expected. Structure for table is below Months Cash 1 4.13 2 46.02 3 46.02 4 5.31 5 5.31 6 51.33 7 393.53 8...

View Article

Best Solution for Contiguous TrackingNumber

One way to generate contiguous TrackingNumber is using SELECT MAX(TrackingNumber) +1 computation.  This method (used before IDENTITY/SEQUENCE was invented) is processing intensive and can cause...

View Article

Incrementing an invoice number

Hi there I need a bit of generic advice about a project I am currently working on which is slightly out of my comfort zone. I’m using SQL 2005 and VB.Net to develop an application that produces...

View Article

Image may be NSFW.
Clik here to view.

Spread the Love! Be our T-SQL TechNet Guru, this Valentine's

TechNet loves you! We love your contributions at TechNet Wiki sooo much that we give you more than just love in return...We give you NOTORIETY, GLORY... and VIRTUAL MEDALS!That's not all, this love we...

View Article


Retriving values from Table1 where the same values not in Table2

I am using two tables. Table 1 and Table 2Now i would like to retrieve my values from Table 1 where this values are not in Table 2..Thanks in advance

View Article

I need to filter the column1 if it is having date in the cell,

I need to filter the column1 if it is having date in the cell,  Column1created_date No Activity in (31 March 2014) 2014-02-27 15:19:44.000 Just Started(28 March 2014)2014-02-27 15:19:44.000 No Activity...

View Article


Regarding MCDBA Certification

Intrested in Writing MCDBA Certification , can some one help me on1) Is there any certification exam that should be taken before the MCDBA exam.

View Article

finding this error when running the below query - Only one expression can be...

select min(h.[Spcl Order]),(select (case when sum(pro.[Quantity]) is null then 0 else sum(pro.[Quantity]) END))+(select (case when sum(A.[Quantity]) is null then 0 else sum(A.[Quantity])...

View Article


Query optimization - Query is taking long time even there is no table scan in...

Hi All,The below query execution is taking very long time even there are all required indexes present. Also in execution plan there is no table scan. I did a lot of research but i am unable to find a...

View Article

Image may be NSFW.
Clik here to view.

Excel 2013 cell mapping to SQL 2008 colums

This is a very "newbie" question. I have an excel "tool" that is used to create Specs for an engineering team. I have created a SQL DB with the appropriate properties as columnsWithin the excel spec, I...

View Article

Customized DATEADD function

Hi I have a one Data column with this value ..2013-10-23I want to put a one case statement that If above value is > to mid of the month (15th of particular month)then It should show 2013-10-01 &...

View Article
Browsing all 23857 articles
Browse latest View live


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