Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
aishwarya08
Frequent Visitor

what is data type of workspace id? In sql database which data types choose to store work-space id?

Text - A Unicode character data string. Can be strings, numbers, or dates represented in a text format. Maximum string length is 268,435,456 Unicode characters (256 mega characters) or 536,870,912 bytes.

1 ACCEPTED SOLUTION
v-micsh-msft
Microsoft Employee
Microsoft Employee

Under Power BI REST API document, it is marked as "string " for the group id (Workspace Id).

 

For example, the body of the Get Groups action:

{
  "odata.context": "string",
  "value": [
    {
    "id": "string", 
    "name": "string", 
     "isReadOnly": true, 
    "isOnDedicatedCapacity": true, 
     "capacityId": "string" 
    }
  ]
}

Which should be an GUID,  

"

128-bit number used to identify information in computer systems. In its canonical textual representation, the sixteen octets of a UUID are represented as 32 hexadecimal (base 16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens). 

"

Search for Microsoft GUID in this article.

So if you would like to store this information into SQL Server, make sure the string field is longer than 128 bit.

 

Regards,

Michael

View solution in original post

2 REPLIES 2
v-micsh-msft
Microsoft Employee
Microsoft Employee

Under Power BI REST API document, it is marked as "string " for the group id (Workspace Id).

 

For example, the body of the Get Groups action:

{
  "odata.context": "string",
  "value": [
    {
    "id": "string", 
    "name": "string", 
     "isReadOnly": true, 
    "isOnDedicatedCapacity": true, 
     "capacityId": "string" 
    }
  ]
}

Which should be an GUID,  

"

128-bit number used to identify information in computer systems. In its canonical textual representation, the sixteen octets of a UUID are represented as 32 hexadecimal (base 16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens). 

"

Search for Microsoft GUID in this article.

So if you would like to store this information into SQL Server, make sure the string field is longer than 128 bit.

 

Regards,

Michael

Thank you for giving answer but can you tell me exact wich data type I used meaning in sql after 128 bit there 256 bit.
In future it may be bigger than 256 bit or not.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.