Viewing 15 posts - 8,566 through 8,580 (of 9,641 total)
GilaMonster (5/21/2008)
Do whatever you need to in the proc...
May 21, 2008 at 10:49 am
You can also use the @query parameter of sp_send_dbmail which sends the results of the query as the body of the message or as an attachment. This lists the...
May 21, 2008 at 10:43 am
In this query:
[font="Courier New"]SELECT
ManagerID,
NationalIDNumber
FROM
HumanResources.Employee
WHERE
nationalidnumber = '295847284'
[/font]
You get an index seek.
In this query which looks very similar:
[font="Courier New"]SELECT
ManagerID,
NationalIDNumber
FROM
HumanResources.Employee
WHERE
nationalidnumber = 295847284
[/font]
You get an index scan because the NationalIDNumber is NVarchar...
May 21, 2008 at 9:51 am
Philip Barry (5/21/2008)
What we do is to create...
May 21, 2008 at 9:37 am
I have never really noticed an issue when using IsNull in the select list, but using any function against a column in a join or where clause can cause performance...
May 21, 2008 at 9:34 am
My best guess is permissions. I believe the Maintenance plan job is running under the SQL Server Agent service account.
Another issue is using a mapped drive. I have...
May 21, 2008 at 9:32 am
Most including MS recommend against using the TRUNCATE_ONLY option. In fact it is being deprecated.
Your backup strategy needs to be defined based on the business needs the database meets....
May 21, 2008 at 9:27 am
Have you looked at using SSIS to do this? You could define a package that contains all the selects and text file destinations and use package variables for your...
May 21, 2008 at 9:19 am
IMO there should at the least be 1 clustered index on every table. In a datawarehouse situation, which you mention you are in, there should be indexes on every...
May 21, 2008 at 9:04 am
Have you verifies that the SQL Browser Service is running? Did you add the port to the connection string?
May 16, 2008 at 9:22 pm
I think getting consistency should be the first goal, then as you state you can start teaching how to write better code. IMO, there is nothing worse than going...
May 16, 2008 at 5:31 am
Simon Facer (5/15/2008)
May 15, 2008 at 3:48 pm
I don't disagree with the answers other than that to me Explicity means the programmer has to say REVERT and without a REVERT I would consider it to be implicit...
May 15, 2008 at 7:59 am
Okay the first solution assumed you had no records with the correct model try this:
[font="Courier New"]-- create test tables
CREATE TABLE #source
(
client INT,
model INT
)
CREATE UNIQUE INDEX ux_source...
May 15, 2008 at 7:49 am
When you change the port in SQL 2005 you have to start the SQL Server Browser Service or you need to specify the port in your application's connection string.
May 14, 2008 at 8:35 pm
Viewing 15 posts - 8,566 through 8,580 (of 9,641 total)