Viewing 15 posts - 271 through 285 (of 608 total)
enriquezreyjoseph (9/27/2013)
Thank you guys..so, i should change varchar now to my whole table and to my front-end...tsk :-(..
The table can contain varchar columns but the statement must be nvarchar.
September 27, 2013 at 3:03 am
enriquezreyjoseph (9/27/2013)
this is it
That's because you have declared your statement as varchar. sp_executesql only accepts nvarchar.
Your
DECLARE @SqlQuery varchar(max)
should be
DECLARE @SqlQuery Nvarchar(max)
September 27, 2013 at 2:35 am
You have two heaps, which are not even close to identical. Delete from a heap does not deallocate pages. I suggest creating a clustered index on these tables and then...
September 25, 2013 at 12:55 pm
I was avoiding the "why" because I don't have an answer.
This works
DECLARE @Numeric NUMERIC(28, 10) = 8E10;
SELECT @Numeric;
This doesn't
DECLARE @Numeric NUMERIC(28, 10) = '8E10';
SELECT @Numeric;
September 20, 2013 at 7:38 am
It also works with the STR function
SELECT CONVERT(NUMERIC(28, 10), STR('8E10', 28, 10));
September 20, 2013 at 7:14 am
Try the following code and watch the memory usage for SSMS in task manager. Make sure you have saved all your work 😉
WHILE 1=1
BEGIN
PRINT '(1 row(s) affected)';
END;
September 20, 2013 at 6:59 am
The ISNUMERIC function tells you if you have a valid int, numeric or float. 8E10 is a valid float.
declare @varchar varchar(50)
select @varchar = '8E10'
select @varchar
select isnumeric(@varchar)
select convert(float, @varchar)
go
September 20, 2013 at 6:03 am
I have had this before and it was due to SSMS running out of memory. My experience of it was when I had SET NOCOUNT OFF while doing a batch...
September 20, 2013 at 5:43 am
I am not voting because I use all three options.
September 18, 2013 at 6:06 am
pradeep.mohan (9/13/2013)
but MSDB database size still 50GB how can i reduce the size after cleanup backup history table.
So what is the...
September 13, 2013 at 6:33 am
Do you think SCOPE_IDENTITY() could be one of the reasons?
September 13, 2013 at 6:33 am
Hi,
If you are only dealing with squares it is quite easy.
Firstly you only need the top left and bottom right co-ordinates:
CREATE TABLE Squares
(CellNo CHAR(2) NOT NULL,
TopLeftX INT NOT NULL,
TopLeftY INT...
September 12, 2013 at 2:22 am
If disk space is not an issue then I would probably leave it. Are you able to restore via the gui?
September 11, 2013 at 8:18 am
My apologies for posting a Spatial answer in the 2005 forum. I must learn to read properly 🙂
To answer your question for the 2005 platform I must ask a question....
September 11, 2013 at 7:14 am
Viewing 15 posts - 271 through 285 (of 608 total)