Viewing 15 posts - 2,581 through 2,595 (of 3,616 total)
Well you are likely to get more than one "Chris Smith" as well as more than one "Chris" and more than one "Smith".
ALTER TABLE dbo.MyTable
ADD CONSTRAINT unq_MyTable UNIQUE (FirstName,LastName)
December 2, 2005 at 1:43 pm
If I get a vague definition of what an update on a table is supposed to do I carry out something similar to the SQL below:
CREATE PROC dbo.setTable @id Int,...
November 29, 2005 at 2:19 am
I wish that the editorial was included in the home page of the site.
It adds a bit of variety and is a reminder that there is a human...
November 29, 2005 at 2:12 am
If all your tables have a clustered index then
SELECT object_name(id),SUM(rows)
FROM sysindexes
WHERE indid=1
GROUP BY object_name(id)
WITH ROLLUP
indid=1 is the clustered index
November 25, 2005 at 4:29 pm
I don't have BOL to hand but I seem to remember that you can do something like SELECT @@SERVERNAME
November 25, 2005 at 4:25 pm
Developer edition is supposed to be limited to 5 connections but apart from that they should be identical.
November 25, 2005 at 4:48 am
There is an explicit role called db_accessadmin that allows existing logins to be added as users in a database.
Where possible my approach would be to have Windows authentication and granting...
November 24, 2005 at 8:22 am
If you CREATE TABLE #TableName it should be for the current connection only.
If you CREATE TABLE ##TableName then it will persists until the creating connection disconnects.
November 23, 2005 at 2:55 pm
Thanks, Old SQL 6.5 habits die hard. Although I know it exists I rarely use the object_name function.
Does anyone know the correct syntax for getting decimal places to appear...
November 23, 2005 at 10:12 am
There are two solutions and they require db_owner or db_DDLAdmin privileges.
If you want to DELETE FROM Table1 then use TRUNCATE TABLE Table1. Not only will this reset the Identity...
November 23, 2005 at 1:39 am
The problem is not my creating objects out of sync the problem is that I have inherrited a plethora of ancient databases with convoluted dependencies and need to be able...
November 19, 2005 at 4:07 am
Is the nature of the single stored procedure such that it cannot be broken out into much simpler non-dynamic SQL?
Let us assume that the proc cannot be broken out.
Even if...
November 17, 2005 at 2:14 am
Sir Bob Geldoff says his productivity is directly proportional to the number of emails he ignores!
He also says that e-mail can be counter productive because the rapid fire responses it...
November 16, 2005 at 2:10 am
I would use the ADO Command object to call your stored procedure.
I don't have my ADO books to hand but it is a case of setting
Command.CommandText to the name of...
November 4, 2005 at 2:16 pm
Viewing 15 posts - 2,581 through 2,595 (of 3,616 total)