Viewing 15 posts - 7,441 through 7,455 (of 7,636 total)
Off the top of my head:
Master_Address = Substring(Master_Address, Len(Master_Address)-2)
March 19, 2008 at 3:47 pm
J (3/19/2008)
HmmmI vaguely remember the furor about VB "dot Nyet" invalidating all code written in previous VB versions...
Walking up to Frankenstein's castle with torches and pitchforks ...
Yes, I was the...
March 19, 2008 at 3:31 pm
Adam Haines (3/18/2008)
March 19, 2008 at 3:29 pm
Shamanka (3/19/2008)
SELECT ASCII(''), ASCII(' '),
CASE WHEN ''=SPACE(1) THEN 'TRUE' ELSE 'FALSE ' END ,
CASE WHEN NULL=' ' THEN 'true' ELSE 'false' END
I get strange...
March 19, 2008 at 3:18 pm
Makes sense to me. What part seems wrong to you?
I can tell you that [font="Courier New"]( '' = ' ' )[/font] in SQL because they are converted to Varchar's...
March 19, 2008 at 3:12 pm
This script article has a view that is both accurate and avoids using cursors: http://www.sqlservercentral.com/scripts/tables/62545/
March 19, 2008 at 2:40 pm
Like this:
SELECT * INTO ##tmpTbl FROM OPENQUERY(TEST, 'SELECT
[Test 1] AS Test1, [Test 2] AS Test2,[Sum of' + @month +'] AS MonthlyAmount FROM [TESTfor sheet1$]')
March 19, 2008 at 2:07 pm
Here's one way:
Imports Microsoft.SqlServer
Imports Microsoft.SqlServer.Management
Imports Microsoft.SqlServer.Management.Common
Imports Microsoft.SqlServer.Management.Smo
Imports Microsoft.SqlServer.Server
Imports system.Data
Module Util
Public Sub Servers_List(ByVal lstOut As IList)
Dim rss As RegisteredServers.RegisteredServerCollection...
March 19, 2008 at 1:19 pm
Because it doesn't work like. Follow Grant's advice and lookup "Dynamic SQL".
March 19, 2008 at 1:17 pm
Grant Fritchey (3/19/2008)
The default installation of AdventureWorks is case sensitive.
Really Grant? Wow! I did not know that. Good to know now though, thanks.
March 19, 2008 at 1:08 pm
I am going to guess that the [font="Courier New"]WAITFOR DELAY[/font] is only there to make testing this case easier (I have done this before) and is not normally there.
I am...
March 19, 2008 at 12:57 pm
I have seen something like this a couple of times before. Both times it was related to the syntax of the [font="Courier New"]DELETE[/font] statement.
Here is how you typically delete...
March 19, 2008 at 12:32 pm
Alter is much better.
As the previous poster noted, it keeps the permissions settings. Plus it's faster and much better at preserving/repairing the dependencies.
March 19, 2008 at 12:08 pm
Huh. Good point Gogula (great name, my compliments to your parents). I was in grid mode and didn't notice it.
Looking through the optimizer, it appeared to me that...
March 19, 2008 at 12:02 pm
Try this:
Create procedure Get_All_Details( @Category_ID int )
as
begin
select
Users.FirstName, Users.LastName, Users.UserName, Category.Category_Name, Category.Start_Date, Category.End_Date,
Employees.Company_ID, Employees.Name, Employees.Salary
from
Users, Category, Employees,
...
March 19, 2008 at 12:15 am
Viewing 15 posts - 7,441 through 7,455 (of 7,636 total)