Viewing 15 posts - 121 through 135 (of 140 total)
Hi John,
This is a slightly confusing area with in SQL Server (but for a good reason) - Users and Logins are different things.
A login may be a Windows User with...
January 24, 2007 at 12:45 pm
Tim,
If you are writing to disk then you might want to keep the INIT command as this will cause it to overwrite rather than append to an existing backupset (file)...
January 24, 2007 at 11:56 am
Try using the OSQL EXIT keyword
C:\>osql -E -n -Q "EXIT (SELECT 10)"
-----------
10
(1 row affected)
C:\>echo %ERRORLEVEL%
10
(if you wrap the script in EXIT then osql returns the last value selected in the...
January 24, 2007 at 10:25 am
Does the job email a named operator on success/failure?
If so you might need to script the operator (or add the operator to the server with the same name manually)...
January 24, 2007 at 6:20 am
Hi Imke,
I dont think you can do this directly from TSQL unless you want to use sp_OACreate to create a Scripting.FileSystemObject then use the GetDrive method of that (however OLE...
January 24, 2007 at 3:25 am
Hi there,
You want somthing like:
CREATE LOGIN James
WITH PASSWORD = 'Kjskd*&sd^^54665&';
USE AdventureWorks;
CREATE USER James FOR LOGIN James;
GO
The sytax is documented here:http://msdn2.microsoft.com/en-us/library/ms173463.aspx
Hope this helps,
- James
January 24, 2007 at 2:28 am
Hi Ronald,
I dont think there is a switch which does this however you can create a batch script which does it - osql handily lets you modify the return values...
January 23, 2007 at 4:31 pm
Hi Brian,
I can think of one way of doing this off the top of my head but it might not be the best way but somthing along the lines of...
January 23, 2007 at 4:05 pm
You might also want to look at using WMI to monitor your servers..
- James
January 23, 2007 at 3:41 pm
Ahh replied at the same time as you did. Glad you got your problem solved.
- James
January 23, 2007 at 3:40 pm
Simon,
Recreating/rebuilding indexes is a sure way to bloat transaction logs so I would suggest you make sure that isnt happening, other than that I can only suggest a large amount...
January 23, 2007 at 3:39 pm
Hi there,
Not 100% sure if I understand quite what you are trying to do but...
A record's position within a table is not necessaraly defined by SQL Server. If you have a...
January 22, 2007 at 3:39 pm
Another great small footprint database is SQLite (http://www.sqlite.org) I have used it fairly extensively at times and for certain applications its hard to beat speedwise.
SQL Server Compact Edition also...
January 8, 2007 at 3:03 am
Hi,
Red Gate software create a tool called SQL Compare - which has a 14 day free trial - which will do exactly what you want. You can find more information...
December 8, 2006 at 1:20 am
You might also want to look at using a third party backup tool such as Red Gate's SQL Backup which will perform the backup quicker, compress (and optionally encrypt) your...
November 1, 2006 at 2:53 am
Viewing 15 posts - 121 through 135 (of 140 total)