Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mssql.d : get data error #63

Open
zafer06 opened this issue Mar 26, 2015 · 0 comments
Open

mssql.d : get data error #63

zafer06 opened this issue Mar 26, 2015 · 0 comments

Comments

@zafer06
Copy link

zafer06 commented Mar 26, 2015

Hi Adam,

Why "get data" gives the error? Can you help?

import std.stdio;
import arsd.mssql;

void main()
{
    writeln("MSSQL Connection Test");

    auto db = new MsSql("Driver={SQL Server Native Client 11.0};Server=127.0.0.1;Database=test;Uid=test;Pwd=test;");
    ResultSet resultSet = db.query("SELECT * FROM CustomerCard");

    foreach(line; resultSet) 
    {
        writefln("LogicalRef: %s  -- Code: %s", line[0], line["CODE"]);
    }
}
...
...
LogicalRef: 120  -- Code: 120 10 564
LogicalRef: 121  -- Code: 120 10 563
LogicalRef: 122  -- Code: 120 10 562
LogicalRef: 123  -- Code: 120 10 561
LogicalRef: 124  -- Code: 120 10 560
LogicalRef: 125  -- Code: 120 10 559
LogicalRef: 126  -- Code: 120 10 558
LogicalRef: 127  -- Code: 120 10 557
arsd.database.DatabaseException@arsd\mssql.d(160): get data:      


----------------
0x00403B2F
0x004039AA
0x0040211B
0x0040E842
0x0040E817
0x0040E72F
0x0040350F
0x76AC919F in BaseThreadInitThunk
0x76FFB54F in RtlInitializeExceptionChain
0x76FFB51A in RtlInitializeExceptionChain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant