Viewing 15 posts - 511 through 525 (of 1,065 total)
Have look at Gail's blog (http://sqlinthewild.co.za/index.php/2007/11/05/datetime-manipulation/)
She has a number of very useful date/time functions. The one for finding the last day of the month is done in a single statement,...
August 13, 2009 at 7:28 am
Never rely on just an application to maintain the integrity of your database. Other applications (and DBAs!!) may also modify your data.
If there's nothing in the database to enforce...
August 13, 2009 at 7:17 am
A row could be missing from query 1, if the same delegate_name is against more than 1 edrs_no, and the one assigned to row number 1 is not '120211637'
Your sub...
August 13, 2009 at 4:36 am
Why not backup to disk, and then copy from disk to tape?
August 13, 2009 at 4:02 am
How good is the network between the subscriber and publisher?
Transactional replication has to commit changes to the subscriber as a whole transaction (or multiple of transactions, depending on your setting...
August 13, 2009 at 2:03 am
The FILE= option is only relevant when more than one backup is in a single backup file (i.e. backups are specified with NOINIT).
If it isn't working with FILE=2, then that's...
August 13, 2009 at 1:45 am
15.3GB reserved 15.8 Data
That shows more Data than Reserved... have you run sp_spaceused @updateusage=true
August 12, 2009 at 7:51 am
If you mean that you only want to allow Windows Authentication, then in Enterprise Manager, right click the server and select properties, then look on the Security tab
August 12, 2009 at 6:47 am
What else is the subscriber doing?
I have seen this sort of thing before, where the subscriber was being used for reporting. The activity on the subscriber was blocking the replication...
August 12, 2009 at 1:49 am
Again, as you have posted no schema details, I can only guess, rather than test a solution.
The WHERE clause is in the wrong place. So you will probably want something...
August 11, 2009 at 1:16 pm
XP_cmdshell lives in the master database, so if you run this in the context of any other database, you have to specify
exec master..xp_cmdshell .....
August 11, 2009 at 7:32 am
As you didn't post any schema details, I couldn't test the first part of your script. The SET statements should be SELECT statements. Try this.
DECLARE @CALL int
SELECT @CALL = Call_Num...
August 11, 2009 at 7:23 am
I don't think there is an easy solution to this without formatting the dates to a known format.
You may find a solution that appears to work, as SQL Server knows...
August 11, 2009 at 7:18 am
I presume you are getting syntax errors on the xp_cmdshell line.
Try this instead
DECLARE @CALL int
SET @CALL = Call_Num From Table_2
DECLARE @PC nchar(10)
SET @PC = Schedular_PC From Table_2
DECLARE @cmd nvarchar(255)
set...
August 11, 2009 at 7:10 am
As long as you know what format the dates you are receiving are in, then format them into YYYYMMDD format.
That way, you shouldn't have a problem, regardless of the language...
August 11, 2009 at 6:58 am
Viewing 15 posts - 511 through 525 (of 1,065 total)