Viewing 15 posts - 136 through 150 (of 334 total)
SSMS -> Options -> Query Results -> SQL Server -> Results to Text -> Maximum Number of Characters displayed in each column
Does that help?
March 13, 2013 at 12:59 pm
Since the data your are loading is going to be scrubbed, don't try to match the source and destination sizes. In your destination table feel free to make it double...
March 13, 2013 at 8:15 am
Sounds, off the top of my head as if you need to normalize your table more. Create a table to hold the car models with key that you can reference...
March 13, 2013 at 8:08 am
Something like this maybe?
declare @error_message varchar(30)
set @error_message = 'invalid url'
update yourtable set url =
(case
when ID = 1 then
case when @url1 is not null
case when left(@url1,8) = 'https://' then...
March 12, 2013 at 11:41 am
Sure you could do it that way. Open your excel and have it pull down the table into a worksheet and then have that worksheep mapped to a file table...
March 12, 2013 at 11:29 am
If you're not searching the text column itself why not simply select the primary key column from your query into a temp table and inner join it to your original...
March 12, 2013 at 11:25 am
You ran into the same issue I did, Eugene. User ms>2000 rather than seconds to meet his criteria but many thanks. I just could NOT figure out hot to set-base...
March 12, 2013 at 10:44 am
It's hideous and I hate it but it does what you want.
if Object_id('tempdb..#TEMP') is not null
DROP TABLE #temp
set nocount on
set dateformat dmy
CREATE TABLE #TEMP (LogIndex int, UserID nvarchar (10), LogTime...
March 12, 2013 at 10:39 am
it's due to the milliseconds.. let me take another look. I also overlooked that you were grouping by user so the criteria changes per user.
March 12, 2013 at 10:00 am
Le Sigh.. for the life of me I cannot figure out how to do this in a set-based statement so slap me now.
The following code will do what you want.
if...
March 12, 2013 at 9:42 am
Another solution could be, depending on the design of the report, to put it in Excel and have a linked datasource that updates on open so that every time someone...
March 12, 2013 at 8:35 am
The requirements shown by your last post are different from the requirements from your first post.
In your first post you state you want only the records that are equal or...
March 12, 2013 at 8:27 am
Is there some reason no one has suggested a 'on delete cascade' foreign key solution? Am I missing something about this situation? It seems to me you could put a...
March 12, 2013 at 8:05 am
If you change the select statement to this:
select t.taxonomyname + ' ; ' from #taxonomy t
left join #taxonomy tt
on t.parentid = tt.id
order by t.id desc
for xml path('')
you'll get the...
March 11, 2013 at 4:54 pm
What about using ODBC and creating a linked table in Access so you have constant and immediate access to the data for the report?
March 11, 2013 at 4:31 pm
Viewing 15 posts - 136 through 150 (of 334 total)