Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Select statement in localDB(SQLServer2014 express) returns no results.

$
0
0

Hi all

I connect SQLServer2014Express localDB with SSMS,the Database engine is "(localDB)\MSSQLLocalDB",and have Windows Authentication.It Connected OK.

I create a Database "Test" and a table "AuthorityGroup" under database "Test".

I insert two records in table "AuthorityGroup" ,it looks like below:

AuthorityGroupID       AuthorityGroupCaption

        1                                操作员

        2                                 abc

AuthorityGroupID is the identity field.

I create a query in SSMS.

     select AuthorityGroupid from AuthorityGroup where AuthorityGroupCaption = 'abc'

then result is 2.

I create another query.

   select AuthorityGroupid from AuthorityGroup where AuthorityGroupCaption = '操作员'

returns no result.

But I  do the same thing in SQLServer2014Express on same computer.

when I run the query

select AuthorityGroupid from AuthorityGroup where AuthorityGroupCaption = '操作员'

the result is 1.

I don't understand why

the Result from SQLServer2014Express localDB  and SQLServer2014Express is different.

thank you for your help.

WY.




Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>