Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 aliasing error

Author  Topic 

WJHamel
Aged Yak Warrior

651 Posts

Posted - 2013-09-18 : 13:25:36
what the heck am i doing wrong in the aliasing in this script????:


Insert INTO [SQLInfo].[dbo].[MainServerInfo] m
([Has Specific Svc Accout for SQL?]
,[Clustered?]
,[Cluster Groups]
,[Servername1]
,[SQLServerIP]
,[IsClustered]
,[Node1name]
,[node1IP]
,[Node2name]
,[Node2IP]
)
SELECT [Has Specific Svc Accout for SQL?]
,[Clustered?]
,[Cluster Groups]
,[Servername1]
,[SQLServerIP]
,[IsClustered]
,[Node1name]
,[node1IP]
,[Node2name]
,[Node2IP]

FROM [SQLInfo].[dbo].[ClusterInfo] b

Inner join mainserverinfo
on m.autoID = b.autoID

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2013-09-18 : 13:42:31
[code]Insert [SQLInfo].[dbo].[MainServerInfo]
(
[Has Specific Svc Accout for SQL?]
,[Clustered?]
,[Cluster Groups]
,[Servername1]
,[SQLServerIP]
,[IsClustered]
,[Node1name]
,[node1IP]
,[Node2name]
,[Node2IP]
)
SELECT
[Has Specific Svc Accout for SQL?]
,[Clustered?]
,[Cluster Groups]
,[Servername1]
,[SQLServerIP]
,[IsClustered]
,[Node1name]
,[node1IP]
,[Node2name]
,[Node2IP]

FROM [SQLInfo].[dbo].[ClusterInfo] b

Inner join mainserverinfo AS m
on m.autoID = b.autoID[/code]
Go to Top of Page
   

- Advertisement -