Viewing 2 posts - 1 through 3 (of 3 total)
Try this:
SELECT
dbo.Product.ProductID,
dbo.Product.Category,
dbo.Product.ProductCode,
dbo.Product.Description,
dbo.Product.Price,
dbo.[Order].CustomerID,
dbo.[Order].OrderID,
dbo.[Order].OrderDate
FROM
dbo.[Order]
INNER JOIN dbo.Product ON dbo.[Order].ProductID = dbo.Product.ProductID
WHERE
convert(datetime,convert(varchar(20),dbo.[Order].OrderDate,106)) = convert(datetime,convert(varchar(20),getdate(),106))
March 11, 2010 at 3:10 am
Create a batch file and add the below content (Replace all the values e.g. SQL Server name, user Id, Pwd)
----------------------------
setlocal
SET SQLCMD=sqlcmd -S SERVERNAME -U LOGINID -P PASSWORD -d DATABASE NAME
for...
March 2, 2010 at 4:16 am
Viewing 2 posts - 1 through 3 (of 3 total)