Viewing 15 posts - 5,686 through 5,700 (of 8,761 total)
vipin_jha123 (4/10/2015)
I am getting error in my below sql statement
Declare @sqlquery varchar(max)
Set @sqlquery='INSERT INTO dbo.Staging_Temp_1 fnGetFirstOcurrences(col001, 'Β―',@Columns),LoadDate FROM dbo.Staging_Temp'
Select @sqlquery
error:-
Msg 102, Level 15, State 1, Line 11
Incorrect syntax...
April 10, 2015 at 3:55 am
Try this
π
SELECT
OBJECT_NAME(ASM.object_id) AS OBJ_NAME
,OBJECT_SCHEMA_NAME(ASM.object_id) AS OBJ_SCHEMA_NAME
,CASE WHEN ASM.definition LIKE N'%UPDATE%' ...
April 10, 2015 at 3:53 am
Slightly different approach, only scans each table once
π
USE tempdb;
GO
SET NOCOUNT ON;
declare @vehicle table(id int, vehiclemake varchar(10), vehiclemodel varchar(10));
declare @vehicleclass table(id int, vehiclemake varchar(10), vehiclemodel varchar(10), classtype varchar(1));
insert into @vehicle values
...
April 10, 2015 at 1:38 am
Thanks Steve!
π
BTW, the leading "#" is included in the count, BOL does not mention that.
April 10, 2015 at 1:00 am
Jeff Moden (4/9/2015)
Eirikur Eiriksson (4/9/2015)
tcronin 95651 (4/9/2015)
April 9, 2015 at 2:04 pm
Sigerson (4/9/2015)
ZZartin (4/3/2015)
Quick question Grant, how many times have you seen systems/processes fail on the 13th of the month? I can count a good handful.
In my last job I managed...
April 9, 2015 at 1:58 pm
Sean Lange (4/9/2015)
April 9, 2015 at 1:53 pm
Ed Wagner (4/9/2015)
Eirikur Eiriksson (4/9/2015)
Ed Wagner (4/9/2015)
Eirikur Eiriksson (4/9/2015)
TomThomson (4/9/2015)
Ed Wagner (4/9/2015)
SQLRNNR (4/9/2015)
@##$@&*&%#@WTF
WOE
TBA
TLA (three-letter acronym)
MAA (Mother of All Acronyms)
MMA (Mixed Martial Arts)
MMM (Many Mountains Moving)
April 9, 2015 at 1:40 pm
Sean Lange (4/9/2015)
April 9, 2015 at 1:28 pm
Sean Lange (4/9/2015)
One caveat of Eirikur's excellent suggestion is that it will NOT find any references if your procedures contain dynamic sql.
Good point, then we use the sys.all_sql_modules
π
SELECT
...
April 9, 2015 at 1:11 pm
tcronin 95651 (4/9/2015)
April 9, 2015 at 12:59 pm
rxm119528 (4/9/2015)
Eric,the compatibility mode is set to SqlServer2008(100).
Thanks
RM.
Seen almost the same before, the difference being the text qualifiers and the missing parameter delimiter. Guess you will have to query the...
April 9, 2015 at 12:55 pm
tcronin 95651 (4/9/2015)
April 9, 2015 at 12:47 pm
Sean Lange (4/9/2015)
Luis Cazares (4/9/2015)
I finally found Dwain's secret.
It won't display here. Says the image contains errors. :w00t:
He he, not the thing I would think of in the context of...
April 9, 2015 at 12:38 pm
Grant Fritchey (4/9/2015)
tcronin 95651 (4/9/2015)
April 9, 2015 at 12:35 pm
Viewing 15 posts - 5,686 through 5,700 (of 8,761 total)