TheGoogle.Cloud.Spanner.V1package provides low-level access to the Google Cloud Spanner API.
This is not recommended for most scenarios. Where possible, use theSpanner ADO.NET providerinstead. (That in turn depends on this package,
but provides a much more user-friendly API, and takes care of a lot of resource management automatically.)
Installation
Install theGoogle.Cloud.Spanner.V1package from NuGet. Add it to
your project in the normal way (for example by right-clicking on the
project in Visual Studio and choosing "Manage NuGet Packages...").
Authentication
When running on Google Cloud, no action needs to be taken to authenticate.
Otherwise, the simplest way of authenticating your API calls is to
set up Application Default Credentials.
The credentials will automatically be used to authenticate. SeeSet up Application Default Credentialsfor more details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e package is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, which is available as a pre-release on NuGet.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e package offers low-level access to the Google Cloud Spanner API and is generally not recommended for most users.\u003c/p\u003e\n"],["\u003cp\u003eThe Spanner ADO.NET provider is preferred over this package because it provides a more user-friendly API and manages resources automatically.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for API calls when running on Google Cloud is automatic, and if running elsewhere, Application Default Credentials are the simplest method.\u003c/p\u003e\n"],["\u003cp\u003eMultiple previous versions of this package are also documented, including a variety of beta and stable versions, from 3.5.0 up to the most recent.\u003c/p\u003e\n"]]],[],null,["Version latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.V1/latest)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/5.0.0)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.6.0)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.5.0)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.4.0)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.3.0)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.2.0)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.1.0)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/4.0.0)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.15.1)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.14.0)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.13.0)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.12.0)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.11.0)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.10.0)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.9.0)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.8.0)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.7.0)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.6.0)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.V1/3.5.0) \n\nGoogle.Cloud.Spanner.V1\n=======================\n\nThe `Google.Cloud.Spanner.V1` package provides low-level access to the Google Cloud Spanner API.\nThis is not recommended for most scenarios. Where possible, use the\n[Spanner ADO.NET provider](../../Google.Cloud.Spanner.Data/latest) instead. (That in turn depends on this package,\nbut provides a much more user-friendly API, and takes care of a lot of resource management automatically.)\n\nInstallation\n------------\n\nInstall the `Google.Cloud.Spanner.V1` package from NuGet. Add it to\nyour project in the normal way (for example by right-clicking on the\nproject in Visual Studio and choosing \"Manage NuGet Packages...\").\n\nAuthentication\n--------------\n\nWhen running on Google Cloud, no action needs to be taken to authenticate.\n\nOtherwise, the simplest way of authenticating your API calls is to\nset up Application Default Credentials.\nThe credentials will automatically be used to authenticate. See\n[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) for more details."]]