Viewing 15 posts - 646 through 660 (of 1,315 total)
Adding more filegroups to the same physical drive will have an effect, but I'm not sure you can say it will always be a benefit or a penalty. The I/O...
January 10, 2007 at 7:57 am
If you can't solve the problem with indexes, or the two-step process Robert proposed, you might consider using a loop that updates a limited number of rows in each cycle. Very large updates put...
January 10, 2007 at 7:42 am
I'm assuming from the forum you posted the question in that you're using SQL 2005, in spite of your reference to Query Analyzer.
A SQL login cannot be a domain administrator. ...
January 8, 2007 at 11:53 am
It might work if you created an alias for the server with the nonstandard port in the Configuration Manager on the client, then used the alias name in the BCP command.
January 8, 2007 at 10:04 am
Even if the MSSQLSERVER service is a domain admin, it won't give network access to a SQL login.
A credential can be created that represents a Windows account, then if it...
January 8, 2007 at 9:58 am
If you're talking about Windows logins, the login is identified by the SID that it gets from the domain. Even if the users have logins in both domains, the SIDs...
January 8, 2007 at 9:33 am
If the Generate Scripts task is not smart enough to drop tables in the correct order, this script will do it. You could add an EXEC to fully automate dropping...
January 3, 2007 at 1:01 pm
TRUNCATE would be fine if there are no foreign keys, and I doubt you'd be contemplating this action on a replicated database. If you have foreign keys your choices are...
January 3, 2007 at 12:39 pm
The application role is set for the connection that executes sp_setapprole, so the application must start executing and open a connection before it can activate the role. Think about it. ...
January 3, 2007 at 12:20 pm
The rules for the scope of alias definitions in SQL queries are not that complicated, even if you can rearrange the query to produce a variety of error messages. All names used...
January 2, 2007 at 8:00 am
Any conversion you do from numeric to float or real will change your data values. You could convert to varchar and do string manipulation to strip trailing zeroes, but T-SQL...
December 27, 2006 at 2:56 pm
Maybe what you need is a derived table subquery in your main FROM clause to define the common expression "'a' + list.a", so you can use the field aa in...
December 27, 2006 at 1:32 pm
Using DELETE is not a practical option, it logs the deletion of each row one at a time. Your choices are either TRUNCATE or DROP/CREATE.
It is hard to say with...
December 27, 2006 at 12:22 pm
You can't add login info to the script for Windows logins, you have to either get security to work (probably with help from the admins) or try another approach.
It sounds like there...
December 26, 2006 at 8:31 am
Approach 1: Create a separate database and create tables with the same structure as the views. (Hint: "SELECT * INTO View FROM OtherDB..View WHERE 1=0" works great, and is easily...
December 22, 2006 at 9:45 am
Viewing 15 posts - 646 through 660 (of 1,315 total)