Viewing 15 posts - 526 through 540 (of 607 total)
Jan Sorenson (10/19/2012)
October 22, 2012 at 8:26 am
I'm currently living in an ORM DBA nightmare. Pulling data for reporting requires an inordinate amount of complex code. Maintenance is hell. I really wish the developers had consulted a...
October 22, 2012 at 2:13 am
Michael Rybicki (10/17/2012)
October 18, 2012 at 5:04 am
1. Why have date and amount in seperate tables?
2. If paymentId is unique it is possibly a good candidate for a primary key, especially if it is ascending.
3. Is paymentId...
October 18, 2012 at 4:19 am
Steve Malley (10/17/2012)
October 17, 2012 at 7:36 am
Bhuvnesh (10/17/2012)
use varchar(16) instead of bigint
The OP cannot sort the result set using varchar, hence the bigint.
October 17, 2012 at 6:09 am
Bhuvnesh (10/17/2012)
Hem.Singh (10/16/2012)
there are multiple solutions in the link you provided. still thinking which one is best.
YOu have to tuse something like this
Where Col1 = @v1 OR Col2...
October 17, 2012 at 6:07 am
CREATE PROCEDURE addDocDetail
@detailID int = NULL,
...,
...
AS
SELECT @detailID = ISNULL(@detailID, IDENT_CURRENT('Doctor'))
...
...
GO
October 17, 2012 at 6:05 am
You can find this in the job history table.
SELECT j.name,
jh.run_date,
jh.run_time,
SUBSTRING(jh.message, CHARINDEX('.', jh.message) + 3, CHARINDEX('.', jh.message, CHARINDEX('.', jh.message) + 1) - CHARINDEX('.', jh.message) - 3) AS MiddleMessage
FROM ...
October 17, 2012 at 5:30 am
Hem.Singh (10/16/2012)
there are multiple solutions in the link you provided. still thinking which one is best.
Test, test, test
October 17, 2012 at 5:05 am
kapil_kk (10/16/2012)
I am a newbie in DBA so can you plz explain me about this set based equivalent approach to cursor..I dont have any idea about this
http://sqlserverconsulting.blogspot.com/2009/12/thinking-in-sets.html
http://www.amazon.com/Joe-Celkos-Thinking-Sets-Management/dp/0123741378
October 17, 2012 at 2:30 am
Firstly, it should be GIS.dbo.GISDaily and not dbo.GIS.GISDaily.
Secondly you can leave the database in simple recovery.
USE DBT;
GO
IF OBJECT_ID('GIS.dbo.GISDaily', 'U') IS NOT NULL
DROP TABLE GIS.dbo.GISDaily;
GO
SELECT *
INTO GIS.dbo.GISDaily
FROM GIS_Info
GO
October 17, 2012 at 2:21 am
Here is an excellent blog explaining the issue:
And Paul Randal's Shrink Alternative:
So what if you *do* need to run a shrink? For instance, if you've deleted a large proportion of...
October 15, 2012 at 6:50 am
Of course the order matters.
Picture a phone book. The index column order is Last Name, First Name.
Now if I asked you to find everyone who's last name is 'Smith' you...
October 10, 2012 at 8:51 am
Viewing 15 posts - 526 through 540 (of 607 total)