Viewing 15 posts - 26,896 through 26,910 (of 39,961 total)
The way you have this written it's not checking uniqueness, it's checking for an inquequality.
I think you want to check
if exists( select id from table where start= @start and...
October 12, 2008 at 7:15 pm
If you ever have an issue from the warehouse, then you'll have to whack the snapshots and you'll lose them. While they're a nice way to get the snapshot, I'd...
October 12, 2008 at 9:58 am
You have written bad code in your scripts and are not properly checking for validation of parameters.
http://www.sqlservercentral.com/articles/Security/updatedsqlinjection/2065/
October 12, 2008 at 9:04 am
The SQL Server security service needs rights to start the service. Or a service. This isn't necessarily granted by default. You'd want to set an account for the SQL service...
October 12, 2008 at 9:03 am
Please don't post polls for questions. Use Add Topic.
This is covered in books online. For general questions, please do some research.
October 12, 2008 at 9:02 am
Please don't write in all caps.
The above solution is how I'd do it as well
October 12, 2008 at 9:01 am
I'm curious why you need to do this? If you remove Bob from SalesAdmin in AD, then he's gone from access to SQL? Or are you adding Bob to SQL...
October 12, 2008 at 9:00 am
Drop them and rebuild them on the primary filegroup. ALTER INDEX and CREATE INDEX have options for specifying the filegroup.
October 12, 2008 at 8:58 am
You can use Profiler, probably the easiest way for large scale tracking of things. It will record all SQL run against the database (you can limit it by user/login).
October 12, 2008 at 8:58 am
Rather confusing, but I'd think the join process would either work, and use the new virtual name, or it will fail, and you'll need to rebuild the server.
Personally I'd probably...
October 12, 2008 at 8:55 am
Are you an admin? It sounds like a rights issue.
October 11, 2008 at 3:26 pm
I have never seen SQL Server, in 17 years, delete objects. Someone did it.
If you have logs or log backups, download Log Rescue from Red gate and view them.
October 11, 2008 at 3:26 pm
Did this fix things?
October 11, 2008 at 3:24 pm
It's security related. You are not running the command, the SQL Server service is.
October 11, 2008 at 3:24 pm
I would agree that not every table needs a Primary Key. Paul has given a great example, and if you do not need to enforce one, then you might not...
October 11, 2008 at 3:22 pm
Viewing 15 posts - 26,896 through 26,910 (of 39,961 total)