Wednesday, March 28, 2012
How odd, strange behaviour
I've got the following issue and I can't work out:
This statement fails:
SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
FROM srvdesa2.NOM.DBO.G61DIET WITH (NOLOCK)
Servidor: mensaje 7377, nivel 16, estado 1, l_nea 2
Cannot specify an index or locking hint for a remote data source.
But this one, ends successful and pull up the data:
SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
Does anyone ever used or experienced any problem with that? are we talking
about the same or different goal with the different way? I mean, nolock, wit
h
nolock...
Thanks for any input and regards,You are defining just an alias here:
SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
Something like SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
FROM srvdesa2.NOM.DBO.G61DIET SomeAlias
HTH, Jens Suessmeyer.|||sorry Jens, I don't understand you, what do you mean with that?
"Jens" wrote:
> You are defining just an alias here:
> SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
>
> Something like SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET SomeAlias
>
> HTH, Jens Suessmeyer.
>|||Defining aliases for the tables often helps to clear queries due to
long names or names where you don=B4t know what the data is all about,
something like:
SELECT Address.*
FROM T3455NBGA Address --Normally this is an Adress table but you
don=B4t know from the name, so we give it an alias in the query
INNER JOIN SomeOtherTable
ON SOmeotherTable.ID =3D Address.ID
HTH, Jens Suessmeyer.|||Thanks in advance, anyway it doesn't works.
"Jens" wrote:
> Defining aliases for the tables often helps to clear queries due to
> long names or names where you don′t know what the data is all about,
> something like:
> SELECT Address.*
> FROM T3455NBGA Address --Normally this is an Adress table but you
> don′t know from the name, so we give it an alias in the query
> INNER JOIN SomeOtherTable
> ON SOmeotherTable.ID = Address.ID
> HTH, Jens Suessmeyer.
>|||> But this one, ends successful and pull up the data:
> SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
So will this:
> SELECT NOLOCK.G61Num AS Curso,NOLOCK.G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
And this:
> SELECT bozo.G61Num AS Curso,bozo.G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET bozo
You would think that SQL Server would treat 'NOLOCK' as a reserved word, but
it doesn't.
"Enric" <Enric@.discussions.microsoft.com> wrote in message
news:95D4CF5F-8E45-44E4-9F35-95F38A5286DA@.microsoft.com...
> Dear folks,
> I've got the following issue and I can't work out:
> This statement fails:
> SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET WITH (NOLOCK)
>
> Servidor: mensaje 7377, nivel 16, estado 1, lnea 2
> Cannot specify an index or locking hint for a remote data source.
> But this one, ends successful and pull up the data:
> SELECT G61Num AS Curso,G61FORM AS Dni,'F' AS Tipo
> FROM srvdesa2.NOM.DBO.G61DIET NOLOCK
> Does anyone ever used or experienced any problem with that? are we talking
> about the same or different goal with the different way? I mean, nolock,
> with
> nolock...
> Thanks for any input and regards,|||Of course not. Because of how you placed NOLOCK in your code, it is simply
being used as an alternative table name, instead of the NOLOCK action that
you are trying to produce. The query that is working is not using NOLOCK as
you intend, but rather is using the term as a reference to your table. The
query that is failing is using NOLOCK as you intended, but SQL Server does
not permit you to use it in that context.
"Enric" <Enric@.discussions.microsoft.com> wrote in message
news:5A50B17C-2705-4027-A5F6-24E025F0CD4F@.microsoft.com...
> Thanks in advance, anyway it doesn't works.
> "Jens" wrote:
>|||I should add that this is not your fault (IMO) since it is more than
reasonable to expect NOLOCK to be a reserved word. It is a simple syntax
error, and an honest mistake.
"Jim Underwood" <james.underwoodATfallonclinic.com> wrote in message
news:%23PJDYbnJGHA.1728@.TK2MSFTNGP09.phx.gbl...
> Of course not. Because of how you placed NOLOCK in your code, it is
simply
> being used as an alternative table name, instead of the NOLOCK action that
> you are trying to produce. The query that is working is not using NOLOCK
as
> you intend, but rather is using the term as a reference to your table.
The
> query that is failing is using NOLOCK as you intended, but SQL Server does
> not permit you to use it in that context.
Friday, March 23, 2012
how move data from informix, continuously
There is an "informix" dbserver, with a table that acts as cache for
continuously generated information ( an applications fills it continuously
in UNIX env).
I want to transfer(move) data from above informix table to my mssql table.
I find two way to do above movement
1- write an application that selects some info from Informix and insert
records to destination mssql then delete source records based on last
identity field
2- use schedule "Import Data" to copy data, simple but can't delete copied
data upto moved records not newer records
is there any other method? can I improve 2nd method to delete copied record
also?
thanks for any suggestions
TarvirdiHi Tarvirdi,
I need a wee bit more info to suggest something. What is the version of
Informix you are using, also you refer to a cache table, can you be more
specific? Hopefully you are not trying to examine/manipulate the internal
logging tables which control Informix data cahing and replication - chances
are you will break them.
Also some food for thought. Even when one undertakes continuous replication
from one informix instance to another, the drain on resources is quite
significant and also forces checkpointing to occur at the end of every commit
work statement. Typically one wouldn't attempt to do continuous replication
unless the application was so crucial that automatic and immediate failover
was required - which isn't possible with SQLServer anyway and arguably not a
great idea in Informix (don't the users want to know that something has just
gobe crach-bang?).
Gice me some more info and I'll try and help.
"Tarvirdi" wrote:
> Dear Friends,
> There is an "informix" dbserver, with a table that acts as cache for
> continuously generated information ( an applications fills it continuously
> in UNIX env).
> I want to transfer(move) data from above informix table to my mssql table.
> I find two way to do above movement
> 1- write an application that selects some info from Informix and insert
> records to destination mssql then delete source records based on last
> identity field
> 2- use schedule "Import Data" to copy data, simple but can't delete copied
> data upto moved records not newer records
> is there any other method? can I improve 2nd method to delete copied record
> also?
> thanks for any suggestions
> Tarvirdi
>
>sql
how move data from informix, continuously
There is an "informix" dbserver, with a table that acts as cache for
continuously generated information ( an applications fills it continuously
in UNIX env).
I want to transfer(move) data from above informix table to my mssql table.
I find two way to do above movement
1- write an application that selects some info from Informix and insert
records to destination mssql then delete source records based on last
identity field
2- use schedule "Import Data" to copy data, simple but can't delete copied
data upto moved records not newer records
is there any other method? can I improve 2nd method to delete copied record
also?
thanks for any suggestions
TarvirdiHi Tarvirdi,
I need a wee bit more info to suggest something. What is the version of
Informix you are using, also you refer to a cache table, can you be more
specific? Hopefully you are not trying to examine/manipulate the internal
logging tables which control Informix data cahing and replication - chances
are you will break them.
Also some food for thought. Even when one undertakes continuous replication
from one informix instance to another, the drain on resources is quite
significant and also forces checkpointing to occur at the end of every commi
t
work statement. Typically one wouldn't attempt to do continuous replication
unless the application was so crucial that automatic and immediate failover
was required - which isn't possible with SQLServer anyway and arguably not a
great idea in Informix (don't the users want to know that something has just
gobe crach-bang?).
Gice me some more info and I'll try and help.
"Tarvirdi" wrote:
> Dear Friends,
> There is an "informix" dbserver, with a table that acts as cache for
> continuously generated information ( an applications fills it continuously
> in UNIX env).
> I want to transfer(move) data from above informix table to my mssql table.
> I find two way to do above movement
> 1- write an application that selects some info from Informix and insert
> records to destination mssql then delete source records based on last
> identity field
> 2- use schedule "Import Data" to copy data, simple but can't delete copie
d
> data upto moved records not newer records
> is there any other method? can I improve 2nd method to delete copied recor
d
> also?
> thanks for any suggestions
> Tarvirdi
>
>
Monday, March 19, 2012
How many drives can be mapped to 2 SQLServer on cluster
Dear all,
We have just configured a SAN system and 2 SQLServer clustered(A/P).
The vendor has mapped 2 logical drives each one is accessed by each SQLServer
ex:
Logical Drives on SAN :- H: and G:
Server S1 have accesses to H: and Server S2 have accesses to G: but at a time we can see both logical drive on each system but can access there mapped drives.
Is this possible to have 2 logical drives on each server mapped with each other on the cluster server.
Server 1 having drive H: and G:
Server 2 having drive H: and G:
Note : Vendor told us that there is a BUG in SQLServer 2005 that only one drive can be mapped with each sqlserver in a cluster.
Please help
Is there can Document Released from Microsoft Regarding Clusting SQLServer2005 Please the link.
Regards
Mohd Sufian
This is not a bug, but functionality. You can only add one drive to each cluster group. If the drive is already used by one SQL server instance, you can not use the same with other instance.
Here is a webcast on 'How to custer SQL Server 2005':
http://support.microsoft.com/kb/891798
And here is a white paper:
http://www.microsoft.com/downloads/details.aspx?FamilyID=818234dc-a17b-4f09-b282-c6830fead499&DisplayLang=en
|||This is technically not a problem with SQL. Most SAN's don't allow you to point more than 1 computer to 1 logical volume on the SAN.Wednesday, March 7, 2012
How is the data secured over the air in Merge Replication ?
Dear ppl,
I have a question for you. One of our client has asked us how is the data secured over the air during Replication?
I have read that Merge Replication uses TLS (Transport Layer Security) protocol to secure the data over the air. But I was wondering if it is all done automatically ? Or do we need to install certificates like for SSL.
We have a Windows Mobile 5.0 application using SQL Mobile that runs over 50 devices and they all synchronise with a single Publisher SQL Server 2005 using GPRS connection. We haven't got any SSL certificates installed on the server.
Now how can i make use of TLS in my application to secure my data over the air (using TLS)?
Regards
Nabeel Farid
thanx for the response Greg.
I didn't exactly understand what you mean. But how can I enable encryption at the protocol level?
Regards
|||You can do this in SQL Server Configuration Manager. Search books online for "encryption protocols", you should find a topic named "Encrypting Connections to SQL Server".
|||You should also look at the Mobile Telecommunications carrier supplying the over the air connection and see what security options they have available. For instance, if there is a dedicated connection like a VPN or whether your are using a public network, the security options will differ.How is the data secured over the air in Merge Replication ?
Dear ppl,
I have a question for you. One of our client has asked us how is the data secured over the air during Replication?
I have read that Merge Replication uses TLS (Transport Layer Security) protocol to secure the data over the air. But I was wondering if it is all done automatically ? Or do we need to install certificates like for SSL.
We have a Windows Mobile 5.0 application using SQL Mobile that runs over 50 devices and they all synchronise with a single Publisher SQL Server 2005 using GPRS connection. We haven't got any SSL certificates installed on the server.
Now how can i make use of TLS in my application to secure my data over the air (using TLS)?
Regards
Nabeel Farid
thanx for the response Greg.
I didn't exactly understand what you mean. But how can I enable encryption at the protocol level?
Regards
|||You can do this in SQL Server Configuration Manager. Search books online for "encryption protocols", you should find a topic named "Encrypting Connections to SQL Server".
|||You should also look at the Mobile Telecommunications carrier supplying the over the air connection and see what security options they have available. For instance, if there is a dedicated connection like a VPN or whether your are using a public network, the security options will differ.Friday, February 24, 2012
How I can restore to the certain LSN (not Point-In-Time)?
How I can restore to the certain LSN (not Point-In-Time)?
Also do you know program for viewing of Transaction Log and BackUp?
Thank you in advance.Have you taken a look at the stopatmark or stopbeforemark option in SQL2005
BOL
9ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/f7b3de5b-198d-448d-8c71-1cdd9239676c.htm)?
Linchi
"RedFox" wrote:
> Dear Sir.
> How I can restore to the certain LSN (not Point-In-Time)?
> Also do you know program for viewing of Transaction Log and BackUp?
> Thank you in advance.|||Dear Linchi Shea,
Thank you for your answer, but I have asked about CERTAIN LSN (= Log
Sequence Number) - NOT MARKED Transaction.
P.S. link is not correct.
"Linchi Shea" wrote:
> Have you taken a look at the stopatmark or stopbeforemark option in SQL2005
> BOL
> 9ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/f7b3de5b-198d-448d-8c71-1cdd9239676c.htm)?
> Linchi
> "RedFox" wrote:
> > Dear Sir.
> >
> > How I can restore to the certain LSN (not Point-In-Time)?
> > Also do you know program for viewing of Transaction Log and BackUp?
> >
> > Thank you in advance.|||The link I posted earlier is for BOL. You can also use this link to the Books
Online at the Microsoft site.
http://msdn2.microsoft.com/en-us/library/ms191459.aspx
> but I have asked about CERTAIN LSN (= Log
> Sequence Number) - NOT MARKED Transaction.
It has an option to allow you to restore to a log sequence number.
Linchi
"RedFox" wrote:
> Dear Linchi Shea,
> Thank you for your answer, but I have asked about CERTAIN LSN (= Log
> Sequence Number) - NOT MARKED Transaction.
> P.S. link is not correct.
> "Linchi Shea" wrote:
> > Have you taken a look at the stopatmark or stopbeforemark option in SQL2005
> > BOL
> > 9ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/f7b3de5b-198d-448d-8c71-1cdd9239676c.htm)?
> >
> > Linchi
> >
> > "RedFox" wrote:
> >
> > > Dear Sir.
> > >
> > > How I can restore to the certain LSN (not Point-In-Time)?
> > > Also do you know program for viewing of Transaction Log and BackUp?
> > >
> > > Thank you in advance.
Sunday, February 19, 2012
How find WHICH HW requirement that is not met?
Dear All,
I get a warning from the SQLExpress 2005 installation that a hardware requirement is not met. The error printout gives absolutely NO info about which requirement that is not met.
So far I have manually scrutinized the HW req's and compared with my machine and found no errors.
Is there a test program somewhere that can tell exactly which requirement that is not met?
How can this error message have passed system test? I reminds me of a Zilog compiler/linker ca 1980 that bailed out with the highly informative error printout: "link error" and nothing more. That was 25+ years ago...
/:o( wabo
This warning message may indicate that your box (for example, memory size) doesn't meet recomendations but not requirements (so system test was successfully passed).
WBR, Evergray
--
Words mean nothing...
Thanks!
But I'd still prefer a more elaborate message, like "Your memory is to low".
Just issuing the message "Warning" is of no help and requires me to do lots of debugging without knowing what I'm looking for...
Best / Bo W