Viewing 15 posts - 346 through 360 (of 568 total)
Hello,
Varchar should be Okay.
I think the use of a Derived-Column like the one detailed in the MSDN thread would be the permanent solution.
Regards,
John Marsh
November 20, 2008 at 3:43 am
Hello again,
It probably is the date format that is causing the problem.
If it is a one off then you could manually fix the incoming data before trying the load again.
If...
November 20, 2008 at 3:21 am
Hello,
The point to notice would be “The value could not be converted because of a potential loss of data”.
So it is to do with the data that you are trying...
November 20, 2008 at 2:59 am
Hello,
Would something along these lines get the result that you want:-
Declare @plz numeric(4,0)
Select @plz = 1213
Select
id
From
MyTable
Where
(@plz >= plz_from) And
(@plz <= plz_to)
Regards,
John Marsh
PS: You could also code the Where clause as:...
November 20, 2008 at 2:30 am
Hello,
In your second example, Distinct applies to the whole record.
To quote BOL: “The DISTINCT keyword eliminates duplicate rows from the results of a SELECT statement”
Regards,
John Marsh
November 19, 2008 at 2:32 am
Hello,
To restore the System Databases you need to have the same Build as the originating server.
Please see the following KB article:-
http://support.microsoft.com/kb/264474
Regards,
John Marsh
November 19, 2008 at 2:24 am
Hello again,
As far as I am aware, the size of a Table Variables is only restricted by the amount of available storage, but you would never want to create one...
November 18, 2008 at 6:12 am
Hello,
Try executing an sp_who2 at them time when a “freeze” occurs and look if there are any sessions blocking each other.
Also, do you have any entries in either the...
November 18, 2008 at 3:46 am
Hello,
May be take a look at these articles:-
http://databases.aspfaq.com/database/should-i-use-a-temp-table-or-a-table-variable.html
Regards,
John Marsh
November 18, 2008 at 3:18 am
Hello,
The main question is what has changed since the time that the Application used to work?
If you don’t know then there are a few things to check:-
1) Is there a...
November 17, 2008 at 4:57 am
Hello,
1) Use the Alter Table statement to add the new columns. This is the example given in BOL (Books Online):-
ALTER TABLE doc_exa ADD column_b VARCHAR(20) NULL
GO
2) Use an Update statement...
November 17, 2008 at 2:47 am
Hello,
You could try the DBCC command and see if it reports anything e.g. DBCC SHRINKFILE (logfilename, 1000) would try to shrink it to 1GB.
Regards,
John Marsh
November 15, 2008 at 4:59 am
Hello,
May be this article will help: http://www.builderau.com.au/program/sqlserver/soa/Help-My-SQL-Server-Log-File-is-too-big-/0,339028455,339292404,00.htm
Regards,
John Marsh
November 15, 2008 at 4:05 am
Hello,
Did you already run a DBCC CHECKTABLE on the corrupt table?
Are there any dependencies on the table that need to be dropped first?
Assuming not, then what error do you get...
November 15, 2008 at 3:35 am
Hello,
I had just posted this link to another thread, but may be it will help you as well, if you are interested in the DBA side of SQL Server:
November 15, 2008 at 3:23 am
Viewing 15 posts - 346 through 360 (of 568 total)