Skip to content

Insertng long latin-1 encoded string into MSSQL varchar(max) column #510

Answered by sportfloh
sportfloh asked this question in Q&A
Discussion options

You must be logged in to vote

Aha, I think I found a solution:

let mut long_latin1_string_blob = BlobSlice {
    is_binary: false,
    blob: long_latin1_string,
    batch_size: long_latin1_string.len(),
};
ms_connection.execute(sql_query, &mut long_latin1_string_blob.as_blob_param())?;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pacman82
Comment options

@sportfloh
Comment options

Answer selected by sportfloh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants