Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: DBI don't fetch my data...or at least not all records

by CountZero (Bishop)
on Nov 20, 2012 at 20:38 UTC ( #1004791=note: print w/ replies, xml ) Need Help??


in reply to DBI don't fetch my data...or at least not all records

I don't have an MSSQL database to test, so my answer could be far off the mark, but I noticed in your failing query the fieldname "id" is all lowercase and in the working query it is all uppercase. Could it be that MSSQL is case-sensitive for the fieldnames?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics


Comment on Re: DBI don't fetch my data...or at least not all records
Re^2: DBI don't fetch my data...or at least not all records
by Anonymous Monk on Nov 20, 2012 at 21:49 UTC
    yes it is
Re^2: DBI don't fetch my data...or at least not all records (case)
by tye (Cardinal) on Nov 21, 2012 at 00:56 UTC

    MSSQL can be configured either way on that point. Years ago when I worked with it last, there was a restriction that you could only en-/dis-able the ignoring of letter case completely. So arranging for the ignoring of letter case for database column names also meant that letter case was ignored when comparing any values.

    - tye        

Re^2: DBI don't fetch my data...or at least not all records
by kurreburre (Acolyte) on Nov 21, 2012 at 06:24 UTC
    Hi all. Well my SQL instance is case insensitive and I also tested that by doing copy and paste from SQL manager, where I get a result when executing the query. I also tested to create the query "case correct" but still it fails.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-09-19 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls