Viewing 15 posts - 706 through 720 (of 1,048 total)
If the intention of the query is to return most if not all of the columns from the table, and the order nor the exact number is important to the...
December 14, 2010 at 12:29 pm
give ownership of the object to someone else or drop the object.
December 14, 2010 at 11:42 am
This would be the fastest:
select
ORDEREDCount = sum(case when ORDERED=1 then 1 else 0 end),
CATALOGUEDCount = sum(case when CATALOGUED=1 then 1 else 0 end),
PRINTEDCount = sum(case when PRINTED=1 then 1 else...
December 7, 2010 at 1:20 pm
This may be a job for service broker. Earlier steps result in a message (or messages) being placed in a service broker queue and the subsequent steps are processed...
December 6, 2010 at 2:39 pm
having a choice I would tend to favor the second version. It has the potential (depending upon table structure) to be faster.
December 2, 2010 at 1:02 pm
I assume both of these SQL server instances are not named instances (they are using the default: name of the machine). Have the servers they are running on been renamed?
You...
November 23, 2010 at 9:12 am
I think it would be good practice to always do an initial full backup on a database as a part of the creation procedure. If for some reason you can't...
November 23, 2010 at 8:28 am
VB is a language a lot of people use or have used but it has contributed to more poor programming techniques and software in general over the years (in my...
November 19, 2010 at 9:17 am
hehe yeah. The early internet days... when there were no hackers... credit card numbers you entered on straight http forms got sent back to the server as a...
November 18, 2010 at 3:00 pm
What company do you work for? I want to make sure I don't buy anything from them with a credit card....
November 18, 2010 at 2:10 pm
Yeah, well the solution I finally adopted was to write a little .NET program that generates csv files. Its a command line driven utility (so you can use it in...
November 18, 2010 at 2:05 pm
use a stored procedure instead of a select and have the stored procedure return a result set that includes the column names.
November 18, 2010 at 12:55 pm
Take a look at some of the white papers out there they usually have a basic format you can use.
My advice is to follow the general guidelines of having...
November 18, 2010 at 7:38 am
MARS is available to .NET provider and SQL Native Client as I stated. You need to enable it in the connection string, and your application code must be written so...
November 18, 2010 at 7:19 am
You will have to query the sys.sysusers table in _each_ database to determine if the particular user has access. This is further complicated by the fact that the login can...
November 18, 2010 at 7:13 am
Viewing 15 posts - 706 through 720 (of 1,048 total)