Viewing 15 posts - 16 through 30 (of 121 total)
you have to first drop the dependent object related to that, find the indexes, constraints on that column and the delete those first and then that column.
October 25, 2011 at 12:39 am
hi,
you can achieve this through pivot here is an example of that
USE AdventureWorks
GO
SELECT [CA], [AZ], [TX]
FROM
(
SELECT sp.StateProvinceCode
FROM Person.Address a
INNER JOIN Person.StateProvince sp
ON a.StateProvinceID = sp.StateProvinceID
) p
PIVOT
(
COUNT (StateProvinceCode)
FOR StateProvinceCode
IN ([CA],...
October 21, 2011 at 4:26 am
hi,
if you use
USE TestDB
GO
there is no need to select any databases from the Database list the query is going to execute under TestDB only
October 21, 2011 at 3:22 am
sorry to say what you mean by currupted here??
is it not used, or in query its going as scan??
can you elaborate the scenario in some broad manner?
October 21, 2011 at 12:54 am
you can have transaction inside a trigger,
October 21, 2011 at 12:49 am
all the object associated with that will be dropped, like if you dropping a table the associated constraints, indexes, triggers,columns everything will dropped as it is higher body from those.
October 20, 2011 at 4:13 am
>> To do this I ended up writing a query with 6 joins for copying only. The data I am trying to copy is almost 1 million records<<
would you mind...
October 18, 2011 at 1:10 am
i think this is not the right place to ask this question, any hows if you google it you will find lots of sites for that.
October 17, 2011 at 6:50 am
@dev: what is the use of doing that, is this means DB tiring?
October 17, 2011 at 3:36 am
as i m seeing, its a pretty straight forward simple design, you can have tables like Equipments,Customers,HireEquipements, DamagedEquipments etc etc. and you have to set some business rules,
i will suggest...
October 16, 2011 at 10:55 pm
Hi,
You can try SSMS its a free tool for sql server which will generate scripts for you.
October 16, 2011 at 10:43 pm
same topic discussion is there in another thread of SSC just have a look on it.
http://www.sqlservercentral.com/Forums/Topic1146957-392-1.aspx
October 15, 2011 at 10:04 am
Viewing 15 posts - 16 through 30 (of 121 total)