Viewing 15 posts - 12,751 through 12,765 (of 26,486 total)
Then try this as a script first:
DECLARE @Path NVARCHAR(500);
SET @Path = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2K8R2\MSSQL\Backup\Restores'
--Backs up version DB that was just upgraded. This should always be one version back
BACKUP...
April 17, 2012 at 2:16 pm
SELECT DCOD, DName
FROM
(SELECT DISTINCT DCOD, DName, DDate FROM SomeTable) AS drv
GROUP BY
DCOD, DName
HAVING
COUNT(*) > 1
The drv above is the alias for the derived table in the outer FROM clause.
April 17, 2012 at 2:13 pm
Next question, from SSMS can query the test database and verify the data to the same query in production?
April 17, 2012 at 2:10 pm
Sean Lange (4/17/2012)
capn.hector (4/17/2012)
Sean Lange (4/17/2012)
hbtkp (4/17/2012)
i need to call this value...
April 17, 2012 at 2:03 pm
Evil Kraig F (4/17/2012)
sqlservant (4/17/2012)
So the result should give me all of the records for 'J6598 JOHN' because one of the DDATE values is different.Don't yell at me.
Relax, we save...
April 17, 2012 at 1:58 pm
What's wrong with doing it this way?
BACKUP DATABASE [Current_LastNAInitialVersion]
TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2K8R2\MSSQL\Backup\Restores\Current_LastNAInitialVersion.bak'
WITH NOFORMAT,
INIT,
NAME = N'Current_LastNAInitialVersion-Full Database...
April 17, 2012 at 1:40 pm
After a quick look, I saw a duplicate. But without know which columns are indexes or just included columns, not really sure otherwise.
April 17, 2012 at 1:33 pm
I take it you ran this in a query window in SSMS. When it finished, what message(s) did you see?
April 17, 2012 at 1:28 pm
hbtkp (4/17/2012)
OK ,IF I CANNOT HEN how can i store my logic which include execute sp and returns 1 valuei need to call this value in case statement
Once more with...
April 17, 2012 at 1:25 pm
The_Mo (4/17/2012)
Please guysJust help me out here with an example query or maybe it is not possible what I am asking?
Mo,:Whistling:
April 17, 2012 at 1:21 pm
SQLKnowItAll (4/17/2012)
sqlfriends (4/17/2012)
SQLKnowItAll (4/17/2012)
ALTER TABLE [dbo].[batSchoolRangeProgramResult] WITH CHECK ADD CONSTRAINT [FK_batSchoolRangeProgramResult_appSchoolRangeProgramSnapshot] FOREIGN KEY([ProcessID], [SchoolYear], [SchoolID], [RangeCd], [ProgramID])
REFERENCES [dbo].[appSchoolRangeProgramSnapshot] ([ProcessID], [SchoolYear], [SchoolID], [RangeCd], [ProgramID])
So the constraint is on...
April 17, 2012 at 1:16 pm
Lynn Pettis (4/17/2012)
hbtkp (4/17/2012)
right now i need 1 solution
i have created 1 sp, and in that i am calling another sp.
now
this sp returns 1...
April 17, 2012 at 1:06 pm
hbtkp (4/17/2012)
right now i need 1 solution
i have created 1 sp, and in that i am calling another sp.
now
this sp returns 1 float value
that...
April 17, 2012 at 1:05 pm
hbtkp (4/17/2012)
right now i need 1 solution
i have created 1 sp, and in that i am calling another sp.
now
this sp returns 1 float value
that...
April 17, 2012 at 1:01 pm
Some examples where it doesn't apear that everything is duplicated would work nicely. In your OP it appears that the 8:300 entries are all the same in both tables.
April 17, 2012 at 12:54 pm
Viewing 15 posts - 12,751 through 12,765 (of 26,486 total)