Viewing 15 posts - 46 through 60 (of 212 total)
Try returning MAX(dates) from contact table, grouping by client number.
_________________________________
seth delconte
http://sqlkeys.com
May 2, 2012 at 2:52 pm
I guess it may depend on what sort of process(es) are kicked off in the batch...if they are able to be executed asynchronously, as with a stored proc execution, then...
_________________________________
seth delconte
http://sqlkeys.com
May 2, 2012 at 1:13 pm
Didn't read closely enough. You are using SQL 2000 - no EXCEPT operator. I'd use UNION. 🙂
_________________________________
seth delconte
http://sqlkeys.com
May 2, 2012 at 12:04 pm
I'd create a linked server from SQL Server to the Oracle server, then compare database tables using EXCEPT or UNION.
_________________________________
seth delconte
http://sqlkeys.com
May 2, 2012 at 12:02 pm
The "Be made using the login's current security context" option means that the linked server will use the current Windows credentials, and log into SQL Server using Windows Authentication. ...
_________________________________
seth delconte
http://sqlkeys.com
April 26, 2012 at 8:51 am
I think it won't delete backups that were made from a different backup job, but I could be wrong. If it won't, you can create a cleanup script to...
_________________________________
seth delconte
http://sqlkeys.com
April 25, 2012 at 3:35 pm
Yes, so do you want to force all data from table B to 20 char length? What exactly do you want?
_________________________________
seth delconte
http://sqlkeys.com
April 25, 2012 at 3:12 pm
Yes. If the maintenance job is backing up directly to your "secure" directory, then it will purge .bak files older than 7 days.
_________________________________
seth delconte
http://sqlkeys.com
April 25, 2012 at 3:08 pm
What do you mean 'is it possible to fix it'? Do you want to force the data to be inserted in spite of being truncated? I think the...
_________________________________
seth delconte
http://sqlkeys.com
April 25, 2012 at 3:06 pm
I don't think you really need a 'running total' if visits are just incremented by 1. You could set up a trigger, or just use something like this for...
_________________________________
seth delconte
http://sqlkeys.com
April 25, 2012 at 1:23 pm
I don't think this is exactly what you're looking for, but it might point you in the right direction:
http://stackoverflow.com/questions/1285686/excel-use-a-cell-value-as-a-parameter-for-a-sql-query
_________________________________
seth delconte
http://sqlkeys.com
April 24, 2012 at 8:57 am
So you want to set up xp_cmdshell to work for non-admin users? This page shows how to do it using sp_xp_cmdshell_proxy_account:
http://msdn.microsoft.com/en-us/library/ms175046.aspx
_________________________________
seth delconte
http://sqlkeys.com
April 9, 2012 at 10:10 am
If you want a running history, I'd use a SQL Job and pull data from sys.databases on a daily basis into a custom table. Then you can query that...
_________________________________
seth delconte
http://sqlkeys.com
April 9, 2012 at 9:55 am
I assume that using the two statements together is kind of a safety mechanism; creating the FK WITH NO CHECK guarantees that the creation of the constraint will not be...
_________________________________
seth delconte
http://sqlkeys.com
March 30, 2012 at 2:43 pm
How about using NOT NULL in a WHERE?
_________________________________
seth delconte
http://sqlkeys.com
March 29, 2012 at 10:32 am
Viewing 15 posts - 46 through 60 (of 212 total)