Viewing 15 posts - 5,836 through 5,850 (of 7,597 total)
MickyD (8/19/2014)
ScottPletcher (8/19/2014)
August 19, 2014 at 2:57 pm
You should be able to get the spreadsheet into a table by right-clicking on the database to load it into, selecting "Tasks", then "Import Data...", and go thru the wizard...
August 19, 2014 at 2:40 pm
My preference would be this (the "extra" parentheses are important to properly match the requirements):
SELECT *
FROM YourTable
WHERE (SnapshotDate > @from AND SnapshotDate < @to)
OR (SnapshotDate = @from...
August 19, 2014 at 2:35 pm
How many rows will be added / changed between uploads / syncs?
I suggest considering Change Tracking or some other automated method of determining changes rather than trying to do it...
August 18, 2014 at 5:30 pm
The DBA's quite right, you need "WITH CHECK" explicitly specified (or allowed to default). I don't see an option in scripting to explicitly specify this (at least through 2008...
August 18, 2014 at 2:29 pm
Grant Fritchey (8/16/2014)
ScottPletcher (8/15/2014)
What...
August 16, 2014 at 9:27 pm
Shouldn't the event you want to intercept be "ALTER_DATABASE", not "RENAME"?
You'll need to interrogate the event data to identity a MODIFY NAME = vs other types of alter database commands.
August 15, 2014 at 1:32 pm
What is(are) the clustering column(s) on the table? You need to read each 1/4 of the table at a time using the appropriate clustering key range.
What are there nonclustering...
August 15, 2014 at 12:23 pm
AZ Pete (8/15/2014)
A unique constraint cannot be implemented since the combination of LocationId and ExternalId must be unique only for the cases when ExernalId is not null. There can be...
August 15, 2014 at 12:18 pm
You should be able to create a DDL trigger to prevent database renames, at least through ALTER DATABASE. I hope sp_renamedb would get caught as well, but I haven't...
August 15, 2014 at 12:10 pm
Alex R (8/15/2014)
this is the latest syntax error:
EXEC sde_Stage.dbo._aaa @table_name = ''GLOBAL'',@date = ''OBJECTIDLIST'',@reduce = 0.0025,@oid =''3476,6673''
SELECT * FROM OPENQUERY ([10.100.1.40], 'EXEC sde_Stage.dbo._aaa @table_name = ''GLOBAL'',@date = ''OBJECTIDLIST'',@reduce = 0.0025,@oid...
August 15, 2014 at 8:30 am
I don't believe you can use varchar(max) across linked servers; try varchar(8000).
August 14, 2014 at 1:18 pm
Something like this:
SELECT ServerName
,SUM(CASE WHEN FileType <> 'LOG' THEN FreeSpace ELSE 0 END) AS 'Available Data Space'
,SUM(CASE WHEN FileType = 'LOG' THEN FreeSpace ELSE 0 END) AS 'Available...
August 14, 2014 at 11:37 am
You don't want quotes around the variable names, just the values, if they are not numeric:
SELECT * FROM OPENQUERY ([10.100.1.1], 'exec mydb.dbo.mysp @p1=''mytable'', @p2=0.0025,@p3 =''3476,6673,3321''')
August 14, 2014 at 11:36 am
That looks fine, unless you're trying to reference the return values, in which case you need to add an alias after the OPENQUERY(...) AS alias_name.
August 14, 2014 at 9:51 am
Viewing 15 posts - 5,836 through 5,850 (of 7,597 total)