Viewing 15 posts - 6,961 through 6,975 (of 7,191 total)
Mahesh
Try this. But beware: if you have procedures of the same name owned by different owners then this will need a bit of refinement.
John
select o.name, user_name(p.grantee) from syspermissions...
July 14, 2006 at 4:11 am
I think you're safe using the SQL Server Service Manager to stop and start the services - it's the Services applet in Control Panel that you shouldn't use. Having said...
July 14, 2006 at 3:25 am
Depending on what commands you are trying to execute against the databases in your list, something like this might be what you're looking for:
declare @db sysname
declare @sqlstring nvarchar(100)
set...
July 14, 2006 at 3:16 am
Perhaps the users who couldn't connect are all on the same part of the network, and connectivity between that part of the network and the SQL Server was lost. Then,...
July 13, 2006 at 7:53 am
Had any configuration change been made before the restart that wouldn't take effect until after the restart, for example authentication mode, TCP port? Check the users/PCs that can't connect and...
July 13, 2006 at 6:41 am
I take it that where duplicates exist in the column that is supposed to be unique, you want to insert one row only? If that is the case, you will...
July 12, 2006 at 7:35 am
Brian
It depends on the format your full names are in. Is it "Lastname, Firstname" or "Firstname Lastname"? Are titles and/or middle names included in the full names? How will you...
July 12, 2006 at 7:04 am
Yes, you can use a staging table, but you'll still have to deal with the duplicates in your data at some point.
John
July 12, 2006 at 6:55 am
I'm guessing that the connection your UserControl uses and the connection you use to execute the INSERT INTO statement have different values for QUOTED_IDENTIFIER. Have a look at the SET...
July 12, 2006 at 5:05 am
And there are still users in the database that you can't delete because it says they own objects?
John
July 12, 2006 at 4:02 am
Not tested...
SELECT c.vcPostcode, COUNT(r.SFID), COUNT(t.iCALL_RESULT_ID)
FROM Customer c LEFT JOIN Contact_Result r
ON c.SFID = r.SFID
LEFT JOIN Contact_type t
ON r.iCALL_RESULT_ID = t.iCALL_RESULT_ID
AND t.Description = 'SALE'
John
July 12, 2006 at 3:57 am
Mark
In the absence of any sample data, I've used the Northwind database. This query finds the second highest value of Freight for each CustomerID in the Orders table. You should...
July 12, 2006 at 3:29 am
G
You don't provide your table definitions, but I imagine that if you try to fit nvarchar(4000) data into several columns in the same table, it is unlikely to fit. nvarchar(4000)...
July 12, 2006 at 2:24 am
Do you need objects owned by different owners, or are you aiming for the recommended practice of having everything owned by dbo?
The following query will give you a list of...
July 12, 2006 at 2:14 am
You do it in exactly the same way as you did the first one. You will need a new IP address from your network administrator before you start, and you...
July 12, 2006 at 1:52 am
Viewing 15 posts - 6,961 through 6,975 (of 7,191 total)