Viewing 15 posts - 361 through 375 (of 907 total)
A Pivot table query would work for you. You should be able to modify my "Pivot table without case statement" example. You can find that example here:
http://www.geocities.com/sqlserverexamples/#pivot1
Gregory Larsen,...
February 24, 2003 at 5:11 pm
Old habits are hard to break. Here is the same thing using sp_executesql:
create PROCEDURE dbo.test
@tableName varchar(20)
AS
declare @CMD nvarchar(1000)
set @CMD = 'SELECT dbo. '+ rtrim(@tableName) + '.*' +
' FROM...
February 24, 2003 at 2:45 pm
Try this out:
create PROCEDURE dbo.test
@tableName varchar(20)
AS
declare @CMD varchar(1000)
set @CMD = 'SELECT dbo. '+ rtrim(@tableName) + '.*' +
' FROM dbo.' + rtrim(@tableName)
exec(@cmd)
GO
Gregory Larsen, DBA
If you looking for SQL Server...
February 24, 2003 at 2:16 pm
I also have not detailed this out at all, but generally this is what I am thinking.
There would be a process that would read the encripted login and password, then...
February 24, 2003 at 10:25 am
We are running all of our jobs using the SQL Server job scheduler. All these jobs are connecting to SQL Server using a trusted connection.
Another possible option...
February 24, 2003 at 9:40 am
Looks like you have a number of examples. If your text data is really less than 8000 then looks like jpipes suggested a simple approach. Now I guess...
February 21, 2003 at 12:34 pm
Here is one possible solution. I'm guessing that someone else might have a better way. This particular example removes all the carriage return and line feed from a...
February 21, 2003 at 9:35 am
If the task scheduler and SQL Server box are one and the same, I think you can add local accounts to SQL Server and still use the trusted option.
Gregory Larsen,...
February 21, 2003 at 8:27 am
Below are two examples to do what you want. Hope this is what you are looking for.
-- Example 1 only works id rows are returned in update...
February 20, 2003 at 5:46 pm
Guess I was trying to assess how much of an impact turning off parallelism migh cause. I'm assuming with parallelism turned on not all query the queries would get...
February 14, 2003 at 9:25 am
Turning parallelism off, surely solves the problem, but I am wondering did parallelism work in SP 3 and earlier? Or where we just not seeing the errors, it really...
February 13, 2003 at 2:54 pm
Probably the easiest way is to go into "Design Table" in EM for the tables that you want to move columns around, and then used CUT/PASTE to reposition the column....
February 13, 2003 at 12:47 pm
I also think you need to add to that sum, the size of the null block, and the variable block. Null block contains the null bit map, and the...
February 13, 2003 at 10:22 am
Here is an article I wrote about collation problems.
http://www.sqlservercentral.com/columnists/glarsen/collate_part1.asp
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
February 13, 2003 at 9:13 am
Have you checked out the convert function?
Try something like this:
declare @N numeric(18,2)
set @N = 49785.26
select convert(char,cast(@N as money),1)
set @N = 85.26
select convert(char,cast(@N as money),1)
set @N =...
February 12, 2003 at 4:05 pm
Viewing 15 posts - 361 through 375 (of 907 total)