Viewing 15 posts - 76 through 90 (of 137 total)
Try this. Replace '11/12/01' with your date.
select CONVERT(SMALLDATETIME, '11/12/01 12:00AM', 1) from TableName
Darren
April 24, 2003 at 1:39 pm
What kind of error do you get? Can you run this with a hard-coded database name and it works fine?
Darren
April 24, 2003 at 1:31 pm
I think instead of doing a max() function in your "not exists" function you need to use a top 1 possibly. I think the Max is always returning 1...
April 24, 2003 at 11:27 am
I'd do an outer join on the table itself.
Example:
select a.* from Customer a
inner join Customer b
where a.Id <> b.Id --Use whatever keys are in this table
and a.firstnm =...
April 22, 2003 at 1:46 pm
Check the event application log on the SQL server and look for MSSQL fatal errors. Also, run DBCC CHECKDB to see if the database has any errors. (This...
April 17, 2003 at 2:38 pm
The only time I've seen the "Cannot generate SSPI context" error is when a user lost their connection to the database and had to relogon to her PC. I...
April 17, 2003 at 2:33 pm
Also, you may find some additional help in BOL under topic "using OPENXML" or "Retrieving and Writing XML Data"
Darren
April 17, 2003 at 2:01 pm
CREATE PROCEDURE dbo.spCustomerXMLIM01
@XmlDoc text
AS
DECLARE @docID int
EXEC sp_xml_preparedocument @docID OUTPUT, @XmlDoc
INSERT INTO tCustomer
SELECT *...
April 17, 2003 at 1:57 pm
We use XML inserts for this type of mass insert. We format an xml document in chunks of about 1000-5000 records, then call one single XML insert statement. ...
April 17, 2003 at 1:31 pm
Did you try the Suggestion Wizard to see if it had any ideas? Maybe try a question like "What servers are like Microsoft?"
Darren
April 17, 2003 at 11:57 am
You could make it the first page they see before entering for the day. As long as it's quick they will probably fill it out but give them the...
April 17, 2003 at 11:39 am
This script is in the transormation section correct? If you have a msg box at the very beginning and it doesn't show up, then it must not even be...
April 17, 2003 at 6:32 am
To see the lock first run the query, then from a different connection type sp_who2. This will show any blocked transactions. If a query is blocking that you...
April 16, 2003 at 10:57 am
The only other suggestion is to run system monitor while this is running next time and look for any outliers. Like CPU and memory usage on SQL Server.
Darren
April 16, 2003 at 9:51 am
Viewing 15 posts - 76 through 90 (of 137 total)