Viewing 15 posts - 91 through 105 (of 280 total)
GSquared (8/1/2012)
If you turn off ANSI_NULLS settings in your query environment, you can do "X = NULL" type tests. Details here: http://msdn.microsoft.com/en-us/library/ms188048.aspx
Thanks, this is exactly it. The environment...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
August 1, 2012 at 7:40 am
mandoswork (8/1/2012)
Incorrect syntax near ')'." when I try and execute? It compiles OK...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
August 1, 2012 at 7:36 am
I know nothing about Powershell, but the SQL command you need is:
SELECT suser_sname(owner_sid)
FROM sys.databases d
WHERE d.name = 'DBNAME'
-- OR d.database_id = 'DB_ID';
Use Powershell to execute this command, swapping out DBNAME...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 27, 2012 at 3:13 am
I am simply looking for ideas or thoughts from people who have done something similar. Once current proposal is to take the SQL data at its previous state before it...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 26, 2012 at 6:06 am
Ooooooo....
I think if I found one of my developers using SMO to access database objects directly, that person would be found hanging from a cross in the morning.
This situation is...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 26, 2012 at 5:55 am
My advice would be to hire a company to find a DBA for you.
Sorry Abel but this is god-awful advice. I recently got involved in a round of recruitment...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 26, 2012 at 2:17 am
I would certainly get rid of the SELECT * and replace it with discrete column names.
This should simultaneously make it easier to profile/trace the query and map against performance, whilst...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 25, 2012 at 10:24 am
* Is it better (performancewise and moneywise) to upgrade to a higher vesrion of SQL, so that we can also upgrade to more processors and memory; or is it better...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 25, 2012 at 10:07 am
Be very, very careful with FOR LOGON triggers. If you take the first script in this thread as an example, it'll work fine but should anything happen to the...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 25, 2012 at 8:06 am
I think this should do it:
DECLARE @n INT
SET @n = 1
WHILE @n <=31
BEGIN
SELECT ID, purchase_id, supp_add_mat_id,
mat_code,asset_no,
CASE WHEN DATEPART(dd, require_date) = @n THEN qty ELSE '0' END AS qty,
require_by,require_date,require_desc,
status,pr_detail_asset,scheduled
FROM dbo.t_pr_details
SET...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 23, 2012 at 2:19 am
What I look for is a challenge. My last employer, though the people were warm and friendly and the environment was OK, was in the managed services business -...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 23, 2012 at 2:05 am
The problem is, it's all relative and totally subjective. There's too many factors affecting the bell(end?) curve, from how you and your job is perceived through to your social...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 20, 2012 at 8:02 am
You could insert the data directly to a staging table on production. This does carry an injection risk but if you are validating your data application-side, this risk is...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 18, 2012 at 9:29 am
ashish.sys (7/18/2012)
------------------------------------------------------------------------------
;WITH Cte AS
(
SELECT
ClaimNO,
CAST('<M>' + REPLACE( REPLACE(...
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 18, 2012 at 7:11 am
Marvellous, thanks Grant.
---
Note to developers:Want to get the best help? Click here https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help (Jeff Moden)
My blog: http://uksqldba.blogspot.com
Visit http://www.DerekColley.co.uk to find out more about me.
July 18, 2012 at 4:19 am
Viewing 15 posts - 91 through 105 (of 280 total)