Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining primary key in SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00457474
Message ID:
00457616
Views:
30
I cost me a whole day but....

The sp_helpindex returns data in the following format:

varchar(128), varchar(210) and nvarchar(2078)

The last one is unicode and quite long (I can't imaging why). Strings under 255 characters or so seem to convert ok. I HATE this, but changing the stored proc by converting the data to a varchar(200) fixes it:

'index_keys' = convert(varchar(200), index_keys)

I suppose I'll save this as one of our custom stored procs so that it doesn't get overwritten by a re-install or upgrade.

Anyone know a better way?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform