Viewing 15 posts - 451 through 465 (of 506 total)
March 30, 2017 at 11:21 am
RESTORE DATABASE YourDB FROM DISK='Path to backup here'
If you want to overwrite an existing database
WITH REPLACE
If you need...
March 30, 2017 at 11:10 am
If the columns ending with "ID" are the related columns:
SELECT
EmpID
, StdID
, HRID
, RecDate
, RecDate
, VaFrmDate
,...
March 28, 2017 at 4:02 pm
We need more info to respond, like; Do these tables have a relationship to each other? We would just be making a guess otherwise.
March 28, 2017 at 2:45 pm
I think what you want is something like:
IF EXISTS(SELECT * FROM sys.tables WHERE name = 'Orders')
SELECT *
FROM Orders;
March 20, 2017 at 5:38 pm
Use SQL Server's IsNull Function for each column in the select list which means you have to list the columns not SELECT *.
SELECT
IsNull(mailAddress, ' ') AS...
March 16, 2017 at 4:07 pm
March 16, 2017 at 3:57 pm
Are you inserting the data in from a query in each database, iQMPlatformDemo , iQMPlatformDemo_1, iQMPlatformDemo_2... into a table in iQMGlobal?
Try:
DECLARE
@sql1 nvarchar(100)='USE ?'
, @sql2...
March 16, 2017 at 3:31 pm
What do you want the procedure to do? Insert some data in a table from tables in a set of databases on your SQL Server Instance? Please remember we know...
March 16, 2017 at 3:05 pm
Can you please explain again what you want to accomplish?
March 16, 2017 at 2:44 pm
You don't need to create it, it still ships with SQL Server. You can use it to do what you want calling it from your code.
March 16, 2017 at 2:43 pm
March 16, 2017 at 2:36 pm
I would try using sp_MSForEachDB
March 16, 2017 at 2:11 pm
Why not create a stored procedure or inline table function?
March 16, 2017 at 12:48 pm
Viewing 15 posts - 451 through 465 (of 506 total)