Viewing 15 posts - 9,151 through 9,165 (of 26,490 total)
The code calling the procedure should test string lengths to see if they exceed what the procedure expects. You code the procedure with a specified size, test for it...
December 19, 2012 at 11:49 am
Or this:
DECLARE @Expiry_Date DATETIME = '2012-12-25 00:00:01.003', @Prod VARCHAR(MAX), @Product_Name VARCHAR(10) = 'Vehicles'
SET @Prod= 'Product: ' + @Product_name + ' (Expires ' + STUFF(CONVERT(VARCHAR(12), @Expiry_Date, 107), 1, 3, DATENAME(MM, @Expiry_Date))...
December 19, 2012 at 9:12 am
TheSQLGuru (12/19/2012)
GSquared
SELECT *
FROM dbo.SARGTest
WHERE CAST(DT AS DATE) = CAST(GETDATE() AS DATE);
It is my belief that this query gets a seek (i.e. is SARGable) as a function-around-a-column because Microsoft KNEW it...
December 19, 2012 at 7:20 am
Really need to see the actual execution plan to help answer this, but a guess would be the writes are to a work table for the ORDER BY clause, even...
December 19, 2012 at 7:06 am
RVO (12/19/2012)
I don't think there is anything with cards or routers.
As I mentioned I did a test. I copied 1 GB file to...
December 19, 2012 at 7:02 am
Adi Cohn-120898 (12/19/2012)
December 19, 2012 at 6:13 am
Here is the code using the EXISTS in the WHERE clause:
/*Create the table*/
CREATE TABLE dbo.Apps
(
IDVARCHAR(50)NOT NULL,
StatVARCHAR(50)NOT NULL,
StatDateDATENOT NULL
)
;
/*Putting data in the table to create the test enviroment*/
INSERT INTO dbo.Apps
(
ID,
Stat,
StatDate
)
Values
('1', 'AppRec',...
December 17, 2012 at 9:08 pm
I don't think this has to do with the log files from the production system. Is the DR database in STANDBY mode (i.e. readonly) between log files being received...
December 17, 2012 at 6:42 am
mpradeep23 (12/17/2012)
We have a table which contains allmost 1 lak to 2 lak of records
querring on that table getting delayed give me idea how to make it faster
Thanks...
December 17, 2012 at 6:36 am
xmozart.ryan (12/17/2012)
December 17, 2012 at 6:32 am
mahesh.dasoni (12/16/2012)
convert(varchar(12),[datetime],112) =convert(varchar(12),getdate(),112)
this takes lots of time during the Market hours and it is very essential as well.
Is there any alternate which we can...
December 17, 2012 at 6:27 am
Looks like the the championship game will be between the SSC Steelers and the SQL Bolts!
Can the SQL Bolts repeat as the Champions of the SSC Fantasy Football League?
December 16, 2012 at 10:18 pm
Has anyone been paying attention to the Consolation Bracket? Looks like the 11th and 12th place teams will be playing for 7th and 8th position!
December 16, 2012 at 9:57 pm
The use of a semicolon (;) is also required to terminate the MERGE statement.
December 15, 2012 at 7:02 pm
I definately agree. It would be nice to have a method to easily determine what a particular scenerio would cost licensing wise as you are starting to architect a...
December 15, 2012 at 1:53 pm
Viewing 15 posts - 9,151 through 9,165 (of 26,490 total)